package com.qfjy.homework.YangJin;

/**
 * @author : --
 * @version :1.0
 * @date : 2022/6/29 18:49
 */

//购买
public class BuyStock implements Order{
    private Stock stock;
    @Override
    public void execute() {
     stock.buy(200);
    }
    public BuyStock(Stock stock){
        this.stock=stock;
    }
}
